package com.shop.entity;
/*CREATE TABLE memberinfor (
  `id` BIGINT(16) NOT NULL auto_increment PRIMARY KEY COMMENT '会员信息编号（主键）',
  `integral` INT NULL COMMENT '会员积分',
  `level` INT NULL COMMENT '会员等级',
  `member_id` BIGINT(16) COMMENT '会员编号（外键）',
  `phone_number` VARCHAR(11),
   `trueName` VARCHAR(20),
   `sex` CHAR(2),
   `email` VARCHAR(32),
  foreign key (member_id) references member(id)
)ENGINE=INNODB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;*/
/**
 * 
 * <b>会员信息<b>
 * <pre>
 * </pre>
 * @author 威 
 * <br>2018年1月2日 下午2:07:24 
 *
 */
public class MemberInfor {
	private Integer id ;
	private String integral ;
	private Integer level ;
	private Member member ;		//会员外键 1:1  双向关联
	private String phone_number ;
	private String trueName ;
	private String sex ;
	private String email ;
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getIntegral() {
		return integral;
	}
	public void setIntegral(String integral) {
		this.integral = integral;
	}
	public Integer getLevel() {
		return level;
	}
	public void setLevel(Integer level) {
		this.level = level;
	}
	public Member getMember() {
		return member;
	}
	public void setMember(Member member) {
		this.member = member;
	}
	
	public String getPhone_number() {
		return phone_number;
	}
	public void setPhone_number(String phone_number) {
		this.phone_number = phone_number;
	}
	public String getTrueName() {
		return trueName;
	}
	public void setTrueName(String trueName) {
		this.trueName = trueName;
	}
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String toString(){
		return "MemberInfor[id="+id+
				",integral="+integral+
				",level="+level+
				",memberId="+member.getId()+
				",trueName="+trueName+
				",sex="+sex+
				",email="+email+
				",phone_number="+phone_number+"]" ;
	}
}
